home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / sysadmin.551 < prev    next >
Text File  |  1992-02-06  |  2KB  |  71 lines

  1. {\rtf0\ansi{\fonttbl\f1\fnil Times-Roman;\f2\fmodern Courier;\f0\fswiss Helvetica;}
  2. \paperw11760
  3. \paperh7200
  4. \margl120
  5. \margr120
  6. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f1\b0\i0\ul0\fs28 sh init boot bin rc\
  7. \
  8. Q:  A machine hangs during boot with the following repeated error message:\
  9. \
  10.     boot_rc\
  11.     \
  12. A:  /etc/init tries to execute the /etc/rc.boot program, but fails because the Bourne shell (/bin/sh) is not found. This happens if the /bin directory got removed or the Bourne shell program is missing from the /bin directory.\
  13. \
  14. The easiest way to recover a hard drive is to boot off of an optical (or off the net, if you're in an environment with networked NeXTs), mount the hard disk, and restore the /bin directory or the missing file(s).  If you have a hard disk with the above symptoms follow the  instructions below. If you are booting from an optical disk, replace the /bin directory from a known good hard disk or have the optical disk replaced if this is not possible.\
  15. \
  16. 1)  Boot off of a release optical disk. To boot type the following command in the ROM monitor:\
  17. \
  18.  
  19. \f2\fs24     NeXT>
  20. \b bod
  21. \b0 \
  22.  
  23. \f1\fs28     \
  24. 2) Log in, and launch a Shell or Terminal window. If you are not logged in as root, su to root to get super-user privileges:\
  25.   \
  26. 3) Mount the hard disk as follows:\
  27. \
  28.  
  29. \f2\fs24     machine#
  30. \b mount /dev/sd0a /mnt
  31. \b0 \
  32.  
  33. \f1\fs28     \
  34. 4)  copy the necessary files over from the optical disk or replace the missing /bin directory:\
  35. \
  36. Assuming the whole /bin directory is missing:\
  37. \
  38.  
  39. \f2\fs24     machine#
  40. \b cd /
  41. \b0 \
  42.     machine#
  43. \b tar cf - bin | (cd /mnt; tar -xpf -)
  44. \b0 \
  45. \
  46.  
  47. \f1\fs28 Or just /bin/sh:\
  48. \
  49.  
  50. \f2\fs24     machine#
  51. \b cd /bin
  52. \b0 \
  53.     machine#
  54. \b tar cf - sh jsh | (cd /mnt/bin; tar -xpf -)
  55. \b0 \
  56.     \
  57.  
  58. \f1\fs28 Other missing files can be copied similarly. Note that a tar is necessary since /bin/sh and /bin/jsh are hard-linked. /bin/[ and /bin/test are hard-linked as well.\
  59.  
  60. \f2\fs24 \
  61.  
  62. \f1\fs28 5)  Power the machine down and reboot off the hard disk.\
  63. \
  64. \
  65. QA 551\
  66. \
  67. Valid for 1.0 \
  68. Valid for 2.0\
  69. \
  70.  
  71.